package middleware

import (
	"editor/store"
	"github.com/gin-gonic/gin"
)

// MiddleWare 定义全局中间件
func MiddleWare() gin.HandlerFunc {
	return func(c *gin.Context) {

		c.Next()

		// 每次都记录日志
		store.Info(c)
	}
}
